<h3 class="ppm-title"><em>USER UNDERTAKING(UU) Form</em><img onclick="sourcecomback()" src="/module/base/images/19.png" /><img onclick="sourcecomback()" src="/module/base/images/18.png" /></h3>
				
<article class="ppm-form-content">
	<div>Before downloading, or using the data provided by the IDGAR Database, please read and agree to this agreement. By successfully uploading new data, downloading existing data, or using data obtained from this database, you unconditionally accept all the terms of this agreement. If you have any 
objections to any terms of this agreement, please refrain from uploading new data or cease downloading and using the data provided by the IDGAR 
Database.<br/>1. The IDGAR Database is committed to providing global-scale isotopic data on atmospheric particulate matter and various emission sources. However, 
we do not assume any responsibility for the consequences of using the data. Users are solely responsible for the consequences arising from the use of
 emission data obtained from this database.<br/>2. The IDGAR Database is built on blockchain technology. All registered users will be required to use their institutional email and undergo identity
 verification. The process of registering a new account, uploading new data, and downloading existing data will be automatically recorded on the
 blockchain, and smart contracts will be signed and timestamped. These steps ensure the authenticity and integrity of the data within the IDGAR
Database.<br/>3. The data provided by this database is for non-commercial use only.<br/>4. Users are prohibited from transferring, either for a fee or without charge, the downloaded data and website accounts to third parties. Users shall bear 
the responsibility for any breaches of this requirement, and the IDGAR team reserves the right to take legal action against such individuals.<br/>5. Users must ensure the integrity and independence of the data when using it. When uploading data, users should ensure the authenticity of the data. 
When downloading and using data, users are prohibited from making modifications to the data.<br/>6 When using the data from this database, proper citation of relevant research papers, including the original literature where the data was published and
IDGAR Database literature, is required.<br/>The IDGAR team reserves the right to interpret, modify, and update this agreement.</div>
					
					
	<ul>
		<li class="ppm-form-input"><span>Sign Here</span><img name="sign" src="/module/base/images/29.png" style="width:120px;"/></li>
		<li></li>
		<li class="ppm-form-input"><span>Role</span><input value="" type="text" name="role"/></li>
		<li class="ppm-form-input"><span>Date</span><input id="dt" value="" type="text" name="date"/></li>
		
	</ul>
	
</article>

<a href="javascript:;" onclick="sourcesubmitData()" class="ppm-form-sub"><img src="/module/base/images/20.png" />Submit</a>
<script>
// 	layui.use(['laydate'], function(){
// 		laydate = layui.laydate;
// 		laydate.render({
// 		    elem: '#dt',
// 		    lang:'en'
// 		  });
// 	})
	function sourcecomback(){
		source.addToserarchPage();
	}
	function sourcesubmitData(){
		var role = $(".ppm-form-input input[name='role']").val();
		var date = $(".ppm-form-input input[name='date']").val();
		if(role == '' || date == ''){
			layer.msg("Please fill in the information !");
			return;
		}
		//ui.confirm("Confirm download?",function(){
			var data = new Array();
			for(var i in sourcedowloadIndex){
				var res = sourcedowloadIndex[i];
				var obj = new Object();
				obj.IsotopeType = res.isotopeType;
				obj.No = res.no;
				obj.SourceType = res.sourceType;
				obj.Content = res.content;
				data.push(obj);
			}
			$.fileDownload('/api/down/SOURCE',
					{
				  		data:{w:JSON.stringify(data)},
				  		prepareCallback:function(url){
				  			ui.popProcess();
					  	},
						successCallback: function(url){
							layer.msg("Download successfully !");
							ui.shutProcess();
						 },
						failCallback: function (html, url) {
							layer.msg("Download error !");
							ui.shutProcess();
						 } 
			});
// 			var config = {
// 					url:'/api/down/SOURCE',
// 					data:{
// 						w:JSON.stringify(data)
// 					},
// 					callBackFunc:function(){
// 						//下载完成 返回数据页
// 						layer.msg("Download successfully !")
// 					},
// 					callBackErrorFunc:function(){}
// 			};
// 			HD.doPost(config);//提交
		//});
		//修改layer弹窗，中文“信息”修改为"message"
		//$(".layui-layer-title").text("Message");
	}
	
	$(function(){
		source.getDownHy();
	})
</script>